<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的知识基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/systemStatic/style/admin.css">
    <link rel="stylesheet" href="${ctx}/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/css/public.css">
    <link rel="stylesheet" href="${ctx}/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .layui-input-block, .textInput {
            float: left;
            width: 81% !important;
            margin-left: 0;
        }

        .input-right {
            width: 81% !important;
        }

        .textLabel, .dateLabel {
            width: 19% !important;
            text-align: right;
            padding-right: 10px;
            box-sizing: border-box;
        }

        .textLabelCol1 {
            width: 9.5%;
            text-align: right;
            padding-right: 10px;
            box-sizing: border-box;
        }

        .textAreaInput, .doNotDelThisDiv {
            width: 90.5%;
        }
        .uploadFileList > span {
            display: block;
        }
        .genDateLabel {
            float: left;
        }
        .temTable tbody td { width: 50%; }
    </style>
</head>
<body style="background-color:#FFF">

<script type="text/html" template>
    <form class="layui-form formPreview"  requrl="${ctx}/qbdms/wQbdMyKnowledge/get" style="padding: 0px 30px; height: 100%; padding-bottom: 60px; box-sizing: border-box;" lay-filter="wQbdMyKnowledgeDataForm">

        <div style="overflow: auto; height: 100%;">

        <table class="temTable tableExcel">
            <tbody request="template/table">
            <tr class="temSpace" request="template/table">
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="主键">主键</label>
                        <input type="text" name="id"  placeholder="请输入"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="id">
                    </td>
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="知识分类1">知识分类1</label>
                        <input type="text" name="knowledge_classifica"  placeholder="请输入知识分类1"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="knowledge_classifica">
                    </td>
            </tr>
            <tr class="temSpace" request="template/table">
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="用户id">用户id</label>
                        <input type="text" name="user_id"  placeholder="请输入用户id"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="user_id">
                    </td>
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="租户Id">租户Id</label>
                        <input type="text" name="tenantId"  placeholder="请输入租户Id"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="tenantId">
                    </td>
            </tr>
            <tr class="temSpace" request="template/table">
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="创建人">创建人</label>
                        <input type="text" name="createBy"  placeholder="请输入"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="createBy">
                    </td>
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="创建时间">创建时间</label>
                        <input type="text" name="createTime"  placeholder="请输入"
                               autocomplete="off" class="layui-input dateTimeFiled input-right time-init"
                               maxlength="50" fieldname="createTime">
                    </td>
            </tr>
            <tr class="temSpace" request="template/table">
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="更新人">更新人</label>
                        <input type="text" name="updateBy"  placeholder="请输入"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="updateBy">
                    </td>
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="更新时间">更新时间</label>
                        <input type="text" name="updateTime"  placeholder="请输入"
                               autocomplete="off" class="layui-input dateTimeFiled input-right time-init"
                               maxlength="50" fieldname="updateTime">
                    </td>
            </tr>
            <tr class="temSpace" request="template/table">
                    <td class="dragInfo temSpace" colspan="1" rowspan="1">
                        <label class="dateLabel genDateLabel" title="密级">密级</label>
                        <input type="text" name="dataprivacylevel"  placeholder="请输入"
                               autocomplete="off" class="layui-input textInput"
                               maxlength="50" fieldname="dataprivacylevel">
                    </td>
            </tr>
            </tbody>
        </table>




        <div class="layui-form-item btnformItem">
            <div>
                <a lay-submit lay-filter="wQbdMyKnowledge" class="layui-btn btn-n privateSubmit" requrl="{{serverPath.basePath}}/qbdms/wQbdMyKnowledge/save">提交</a>
                <button type="reset" id="closeWindow" style="margin-left: 10px;" class="layui-btn btn-n layui-btn-danger btn-save">取消</button>
            </div>
        </div>
        </div>
    </form>
</script>
<script src="/public/component.js" type="text/javascript"></script>
<script src="/layui/layui.js"></script>
<script>

    layui.config({
        base: serverPath.formPath + staticPath.formPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','common','laydate','jquery','commons','ice','publicMethods'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var commons = layui.commons;
        var ice = layui.ice;
        var dateTimeFiledLen = $(".dateTimeFiled");
        var publicMethods = layui.publicMethods;
        for(var i=0;i<dateTimeFiledLen.length;i++){
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                ,type: 'date'
                ,trigger: 'click'
            });
        }

        var defProps = {
                    //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                    viewMould: 'moulds/', // 组件模块 存放文件 *****
                    initCss: [
                        'style/currencyCss'
                    ],
                    // formAreaInfo:'.formPreview',
                    formAreaInfo: 'html',
                    temDate: '.temDate',
                    uploadFileBtn: '.uploadFileBtn',
                    uploadImgBtn: '.uploadImgBtn',
                    richTextArea: '.richTextArea',
                    selectInput: '.selectInput',
                    radioOptionCont: '.radioOptionCont',
                    dataLexiTree: '.dataLexiTree',
                    selectorBtn: '.selectorBtn',
                }
        ;
        // init 模板部分渲染
        ice.loadCss(defProps.initCss);

        //关闭当前页面
        $("#closeWindow").click(function () {
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        });

        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }

        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name:'wQbdMyKnowledgeDataForm',
            idValue:"${id}",
            primary:"id",
            updateCallback:function (data) {
                if (common.filterRecord(data)) {
                    if($(".privateSubmit")){
                        $(".privateSubmit").attr("disabled",false).css("pointer-events","auto");
                    }
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = serverPath.basePath + '/qbdms/wQbdMyKnowledge/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }
        });
    });
</script>
</body>
</html>